= header_tag('库存信息列表')

= render 'search'

.row
  %table.table.table-striped.table-bordered.table-hover{ 'data-source' => '/machine_grids.json', id: "machine_grids_datatable" }
    %thead
      %tr
        %th 终端信息
        %th 格子信息
        %th 商品名称
        %th 商品价格
        %th 状态
        %th 创建时间
        %th 操作
    %tbody

= link_to '新建格子', new_cpanel_machine_grid_path, class: "btn btn-outline btn-primary"

:javascript
  $(function(){
    CPANEL.MachineGrids.DataTable.init();
  });
